ul li {
    float:left;
    list-style: none;
    margin-bottom:50px;
}
ul li:nth-child(2n) {
    float:right;
}
ul li div {
    width: 500px;
    padding:20px 10px;
    text-align: left;
    background-color: rgb(245,245,245);
}
ul li div {
    transition: all .2s linear;
}
ul li div:hover {
    transform: scale(1.02);
    box-shadow:10px 10px 20px 10px rgb(231, 231, 231);
}
ul li div img {
    width: 100%;
}
ul li div p {
    white-space: nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
ul li div a {
    text-decoration: none;
    color:black;
}